package com.iltgcl.echovoicedemo.di

import com.iltgcl.echovoice.di.ApplicationScope
import com.iltgcl.echovoicedemo.MainApplication
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ApplicationComponent
import kotlinx.coroutines.CoroutineScope
import javax.inject.Singleton

@Module
@InstallIn(ApplicationComponent::class)
object AppModule {
    @Provides
    @Singleton
    @ApplicationScope
    fun provideApplicationScope(): CoroutineScope = MainApplication.applicationScope
}